public class demo2 {
    public static void main(String[] args) {
        Music2 m = new Music2();
        Read2 r = new Read2();
        Thread t_m = new Thread(m);
        Thread t_r = new Thread(r);
        t_m.start();
        t_r.start();
    }
}
class Music2 implements Runnable{
    @Override
    public void run() {
        for(int i = 0; i <= 100; i ++ ){
            System.out.println(i + "听歌");
        }
    }
}
class Read2 implements Runnable{
    @Override
    public void run() {
        for(int i = 0; i <= 100; i ++ ){
            System.out.println(i + "看书");
        }
    }
}


